package com.kjlink.internal.workreport.stats.lookup;

import com.kjlink.internal.workreport.base.enums.ProjectType;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDate;
import java.util.List;

/**
 * 描述:
 * 1. 人员周工时统计查询条件 ： startDate +  endDate
 * 2. 延展为 查询 人员工时汇总 的柱状图  ：
 *
 * @author Vic.xu
 * @since 2024-07-16 13:21
 */
public class UserWeekLookup {
    /**
     * 时间:形如2024-12-12
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate startDate;

    /**
     * 时间:形如2024-12-12
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate endDate;

    /**
     * 所属小组
     */
    private List<Integer> groupIds;
    /**
     * 所属项目
     */
    private List<Integer> projectIds;
    /**
     * //统计计划的时候 是否统计全部(默认是), 否则只统计有计划的人员
     */
    private Boolean whole;

    /**
     * 项目类型
     */
    private ProjectType projectType;

    public LocalDate getStartDate() {
        return startDate;
    }

    public void setStartDate(LocalDate startDate) {
        this.startDate = startDate;
    }

    public LocalDate getEndDate() {
        return endDate;
    }

    public void setEndDate(LocalDate endDate) {
        this.endDate = endDate;
    }

    public List<Integer> getGroupIds() {
        return groupIds;
    }

    public void setGroupIds(List<Integer> groupIds) {
        this.groupIds = groupIds;
    }

    public List<Integer> getProjectIds() {
        return projectIds;
    }

    public void setProjectIds(List<Integer> projectIds) {
        this.projectIds = projectIds;
    }

    public ProjectType getProjectType() {
        return projectType;
    }

    public void setProjectType(ProjectType projectType) {
        this.projectType = projectType;
    }

    public Boolean getWhole() {
        return whole;
    }

    public void setWhole(Boolean whole) {
        this.whole = whole;
    }
}
